﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList arrayList = new ArrayList();

            arrayList.Add(12);
            arrayList.Add(12.25);
            arrayList.Add("meimei");
            arrayList.Add(true);


            arrayList.Remove("meimei");
            var res = arrayList.IndexOf(12.25);

            Console.WriteLine(res);

            Console.WriteLine(arrayList.Count);


            Console.WriteLine(arrayList[0]);
            Console.WriteLine(arrayList[1]);

            foreach (var item in arrayList)
            {
                Console.WriteLine(item);
            }


            ArrayList arrayList1 = new ArrayList() { "cba", "abc", "aac" };

            arrayList1.Sort();

            foreach (var item in arrayList1)
            {
                Console.WriteLine(item);
            }
        }
    }
}
